package cn.itcast.java.ab;

/**
 * Author itcast
 * Date 2021/10/9 1:18
 * Desc TODO
 */
public class AnimalTest {
    public static void main(String[] args) {
        Animal a = new Animal() {
            @Override
            public void eat() {
                System.out.println("吃草");
            }
        };
    }
}
